import request from '@/utils/request'

// 查询设备附件列表
export function listDeviceAttach(query) {
  return request({
    url: '/hospital/device/attach/list',
    method: 'get',
    params: query
  })
}

// 保存设备附件
export function addDeviceAttach(data) {
  return request({
    url: '/hospital/device/attch/saveUpload',
    method: 'post',
    data: data
  })
}

// 删除设备附件
export function delDeviceAttach(attachId) {
  return request({
    url: '/hospital/device/attach/' + attachId,
    method: 'delete'
  })
}
